Allow Adding Sms / Email before Login#1355
Conversation
f041aa1 to
f761617
Compare
ec4ae70 to
3a3fa3d
Compare
3a3fa3d to
a3323ed
Compare
| }); | ||
|
|
||
| test('should preserve cached push subscription when updating models', async () => { | ||
| setUpdateSubscriptionResponse({ subscriptionId: SUB_ID_2 }); |
There was a problem hiding this comment.
getting rid of extraneous calls
| ); | ||
| ]; | ||
|
|
||
| await Promise.all(promises); |
There was a problem hiding this comment.
Just double checking, do we not care about the order in which TransferSubscriptionOperation and LoginUserOperation are run?
There was a problem hiding this comment.
Technically it doesnt matter since the operations get grouped anyway.
| get onesignalId(): string | undefined { | ||
| const oneSignalId = OneSignal.coreDirector.getIdentityModel().onesignalId; | ||
| return !IDManager.isLocalId(oneSignalId) ? oneSignalId : undefined; | ||
| get onesignalId(): string { |
There was a problem hiding this comment.
My only worry about this is ensuring that we have a IDManager.isLocalId(oneSignalId) check anywhere needed that invokes this getter
There was a problem hiding this comment.
Its a public api but its only used here.
| IdentityConstants.ONESIGNAL_ID, | ||
| onesignalId, | ||
| ModelChangeTags.NO_PROPOGATE, | ||
| ); |
There was a problem hiding this comment.
Non-blocking and very nit but I just realized: shouldn't this be NO_PROPAGATE?
There was a problem hiding this comment.
Youre right, updated!
Description
1 Line Summary
Details
Systems Affected
Validation
Tests
Info
Checklist
Programming Checklist
Interfaces:
Functions:
Typescript:
Other:
elem of arraysyntax. PreferforEachor usemapcontextif possible. Instead, we can pass it to function/constructor so that we don't callOneSignal.contextScreenshots
Info
Checklist
Related Tickets
This change is